package com.lap.web.starter.api.builder;

import com.lap.web.starter.api.ApiResource;
import java.util.List;

/**
 * 资源协调器
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
class ApiDirector {

  private final ApiBuilder builder;

  ApiDirector(ApiBuilder builder) {
    this.builder = builder;
  }

  public List<ApiResource> construct(String module, String name, List<Object> dataList) {
    builder.builderModule(module, name);
    builder.builderClass(module, name, dataList);
    return builder.getApis();
  }
}
